<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<%@include file="/view/resource.jsp"%>
		<script type="text/javascript" src="${msUrl}/js/ux/news/news.js"></script>
		<style type="text/css">
			.fitem label{
				width: auto;
			}
			.input{
				width: 300px;
			}
		</style>
	</head>
	<body class="easyui-layout">
		<!-- Search panel start -->
		<div class="ui-search-panel" region="north" style="height: 80px;"
			title="搜索框"
			data-options="striped: true,collapsible:false,iconCls:'icon-search',border:false">
			<form id="searchForm">
				<p class="ui-fields">
					<label class="ui-label">
						新闻标题:
					</label>
					<input name="title" class="easyui-box ui-text"
						style="width: 100px;">
				</p>
				<a href="#" id="btn-search" class="easyui-linkbutton"
					iconCls="icon-search">搜索</a>
			</form>
		</div>
		<!--  Search panel end -->

		<!-- DataList  -->
		<div region="center" border="false">
			<table id="data-list"></table>
		</div>
		
		<!-- Edit Form -->
     <div id="edit-win" class="easyui-dialog" title="编辑" data-options="closed:true,iconCls:'icon-save',modal:true" style="width:950px;height:500px;">  
     	<form id="editForm" class="ui-form" method="post">  
     		 <input class="hidden" name="deleted">
     		 <input class="hidden" type="text" name="id">
     		 <div class="ui-edit">
	     	   <div class="ftitle">新闻信息</div>   
	           <div class="fitem">  
	               <label>标题:</label>  
	               <input class="easyui-validatebox input" type="text" name="title" data-options="required:true,validType:'length[1,100]'">
	           </div>  
	           <div class="fitem">  
	               <label>类别:</label>  
	               <select class="easyui-combobox" name="category" data-options="required:true">
                    	<option value="1" selected="selected">各地教育</option>
                    	<option value="2">社会民生</option>
                    	<option value="3">娱乐快讯</option>
                    	<option value="4">军情聚焦</option>
                    	<option value="99">广告</option>
                   	</select>
                   	<label>是否外链:</label>  
	               <select class="easyui-combobox" name="outerLink" data-options="required:true">
                    	<option value="0" selected="selected"> 否 </option>
                    	<option value="1"> 是 </option>
                   	</select>
                   	<label>是否热门:</label>  
	               <select class="easyui-combobox" name="hot" data-options="required:true">
                    	<option value="0" selected="selected">否</option>
                    	<option value="1">是</option>
                   	</select>
                   	<label>是否最新:</label>  
	               <select class="easyui-combobox" name="latest" data-options="required:true">
                    	<option value="0" selected="selected">否</option>
                    	<option value="1">是</option>
                   	</select>
	           </div>   
	           <div class="fitem">  
	               <label>外链链接:</label>  
	               <input class="easyui-validatebox input" type="text" name="link" data-options="validType:'length[1,512]'">
	           </div> 
               <div class="fitem">  
	               <script name="content" type="text/plain" id="myEditor" style="width:850px;height:240px;"></script>
	           </div>
	         </div>
     	</form>
  	 </div> 
  	
   	 <script type="text/javascript">
       	//实例化编辑器
   		var um = UM.getEditor('myEditor');
   	 </script>
	</body>
</html>
